import {request} from '@/utils/httprequest';
export function deleteFileData(id) {
    return request({
        url: '/data/' + id,
        method: 'delete',
    })
}

export function upLoadFileData(data) {
    return request({
        url: '/data',
        method: 'post',
        data: data
    })
}

//获取文件列表
export function getFileData(id) {
    const url = id ? `/data/${id}` : '/data';
    return request({
        url: url,
        method: 'get',
    });
}
